package com.zmn.oms.persistence.interfaces.ins;

import com.zmn.oms.model.entity.ins.InsOrderSync;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 类描述：保险单
 *
 * @author liuying
 * @date 2019/01/23 10:12
 */
public interface InsOrderSyncZmnDao {

    /**
     * 根据订单ID查询
     * @param code
     * @return
     */
    List<InsOrderSync> listByOrderId(@Param("code") String code);

    /**
     * 查询未同步的数据
     * @return
     */
    List<InsOrderSync> listNoSynced(@Param("rows")Integer rows);

    /**
     * 修改同步状态
     * @param insSyncId
     */
    void updateSyncedByKey(@Param("insSyncId") Long insSyncId);

    /**
     * 修改同步状态
     * @param insSyncIdList
     */
    void updateSyncedByKeys(@Param("insSyncIdList") List<Long> insSyncIdList);

    /**
     * 添加
     * @param insOrderSyncList
     * @return
     */
    int insertInsOrderSyncList(@Param("insOrderSyncList") List<InsOrderSync> insOrderSyncList);
}